package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 单位
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpOrg extends Model<JbdpOrg> {

    private static final long serialVersionUID=1L;

    /**
     * 单位主键
     */
    @TableId("ORG_ID")
    private String orgId;

    /**
     * 单位编码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    /**
     * 单位全称
     */
    @TableField("ORG_NAME")
    private String orgName;

    /**
     * 单位简称
     */
    @TableField("SHORT_NAME")
    private String shortName;

    /**
     * 单位负责人ID
     */
    @TableField("PRINCIPAL_ID")
    private String principalId;

    /**
     * 负责人姓名
     */
    @TableField("PRINCIPAL_NAME")
    private String principalName;

    /**
     * 邮编
     */
    @TableField("ZIP_CODE")
    private String zipCode;

    /**
     * 单位电话
     */
    @TableField("TEL")
    private String tel;

    /**
     * 单位地址
     */
    @TableField("ADDRESS")
    private String address;

    /**
     * 公司邮箱
     */
    @TableField("EMAIL")
    private String email;

    /**
     * 成立时间
     */
    @TableField("SETUP_DATE")
    private LocalDateTime setupDate;

    /**
     * 最后修改时间
     */
    @TableField("LAST_EDIT_TIME")
    private LocalDateTime lastEditTime;

    /**
     * 排序
     */
    @TableField("ORDER_NO")
    private Integer orderNo;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 删除标示
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;

    /**
     * 备用字段1
     */
    @TableField("DEF1")
    private String def1;

    /**
     * 备用字段2
     */
    @TableField("DEF2")
    private String def2;

    /**
     * 备用字段3
     */
    @TableField("DEF3")
    private String def3;

    /**
     * 备用字段4
     */
    @TableField("DEF4")
    private String def4;

    /**
     * 备用字段5
     */
    @TableField("DEF5")
    private String def5;


    public String getOrgId() {
        return orgId;
    }

    public JbdpOrg setOrgId(String orgId) {
        this.orgId = orgId;
        return this;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public JbdpOrg setOrgCode(String orgCode) {
        this.orgCode = orgCode;
        return this;
    }

    public String getOrgName() {
        return orgName;
    }

    public JbdpOrg setOrgName(String orgName) {
        this.orgName = orgName;
        return this;
    }

    public String getShortName() {
        return shortName;
    }

    public JbdpOrg setShortName(String shortName) {
        this.shortName = shortName;
        return this;
    }

    public String getPrincipalId() {
        return principalId;
    }

    public JbdpOrg setPrincipalId(String principalId) {
        this.principalId = principalId;
        return this;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public JbdpOrg setPrincipalName(String principalName) {
        this.principalName = principalName;
        return this;
    }

    public String getZipCode() {
        return zipCode;
    }

    public JbdpOrg setZipCode(String zipCode) {
        this.zipCode = zipCode;
        return this;
    }

    public String getTel() {
        return tel;
    }

    public JbdpOrg setTel(String tel) {
        this.tel = tel;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public JbdpOrg setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public JbdpOrg setEmail(String email) {
        this.email = email;
        return this;
    }

    public LocalDateTime getSetupDate() {
        return setupDate;
    }

    public JbdpOrg setSetupDate(LocalDateTime setupDate) {
        this.setupDate = setupDate;
        return this;
    }

    public LocalDateTime getLastEditTime() {
        return lastEditTime;
    }

    public JbdpOrg setLastEditTime(LocalDateTime lastEditTime) {
        this.lastEditTime = lastEditTime;
        return this;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public JbdpOrg setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpOrg setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public JbdpOrg setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getDef1() {
        return def1;
    }

    public JbdpOrg setDef1(String def1) {
        this.def1 = def1;
        return this;
    }

    public String getDef2() {
        return def2;
    }

    public JbdpOrg setDef2(String def2) {
        this.def2 = def2;
        return this;
    }

    public String getDef3() {
        return def3;
    }

    public JbdpOrg setDef3(String def3) {
        this.def3 = def3;
        return this;
    }

    public String getDef4() {
        return def4;
    }

    public JbdpOrg setDef4(String def4) {
        this.def4 = def4;
        return this;
    }

    public String getDef5() {
        return def5;
    }

    public JbdpOrg setDef5(String def5) {
        this.def5 = def5;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.orgId;
    }

    @Override
    public String toString() {
        return "JbdpOrg{" +
        "orgId=" + orgId +
        ", orgCode=" + orgCode +
        ", orgName=" + orgName +
        ", shortName=" + shortName +
        ", principalId=" + principalId +
        ", principalName=" + principalName +
        ", zipCode=" + zipCode +
        ", tel=" + tel +
        ", address=" + address +
        ", email=" + email +
        ", setupDate=" + setupDate +
        ", lastEditTime=" + lastEditTime +
        ", orderNo=" + orderNo +
        ", state=" + state +
        ", delFlag=" + delFlag +
        ", def1=" + def1 +
        ", def2=" + def2 +
        ", def3=" + def3 +
        ", def4=" + def4 +
        ", def5=" + def5 +
        "}";
    }
}
